package com.yunshan.welfare.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunshan.common.annotation.Excel;
import com.yunshan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 礼包管理对象 welfare_gift
 *
 * @author yunshan
 * @date 2025-01-20
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WelfareGift extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 礼包名称 */
    @Excel(name = "礼包名称")
    private String name;

    /** 礼包封面 */
    @Excel(name = "礼包封面")
    private String giftImg;

    /** 礼包价值 */
    @Excel(name = "礼包价值")
    private BigDecimal price;

    /** 状态0:上架 1下架 */
    @ApiModelProperty("状态0:上架 1下架")
    @Excel(name = "状态0:上架 1下架")
    private Integer status;

    /** 是否删除0:未删除,1:删除 */
    private Integer isDeleted;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<WelfareGiftContent> welfareGiftContent;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<WelfareGiftRecord> welfareGiftRecords;

    /** 发放量 */
    private Integer num;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Date endTime;
}
